package fundamental;

public class Customer extends Point {
    public int demand;
    public Cand sameCand;
    public int overDemand;

    public Customer(int num, int demand, int cap) {
        super(num);
        int count = 0;
        while (demand > cap) {
            count += cap;
            demand -= cap;
        }
        this.demand = demand;
        overDemand = count;
    }

    public Customer() {
        super();
    }

    @Override
    public String toString() {
        return String.valueOf(num);
    }
}
